![]() |
PATH![]() |
![]() ![]() |
Table A-3 lists special variables that are defined by AppleScript. These variables are global, that is, they are available anywhere in a script.
As with all other identifiers, predefined variables are not case sensitive. For example, result , Result , and RESULT are all treated as the same variable.
See Constants for additional information on predefined variables.
Table A-3 Predefined variables
it
|
Reference | The default target. For more information, see Control Statements |
me
|
Reference | The current script (used within Tell statements to refer to handlers or properties of the current script). For more information, see Control Statements and Handlers |
version
|
version |
The current AppleScript version. Property of AppleScript; also property of other applications.
if (version as string) ≥ "1.3.4" then |
pi
|
Real | The value (roughly 3.14159). |
result
|
Any class | The result returned by the most recently executed command or the most recently evaluated expression. The value of result is undefined if the most recently executed command did not return a result. |
return
|
String | A return character. |
space
|
String | A space character. |
tab
|
String | A tab character. |
anything
|
Class | Accept any kind of value. |
missing value
|
Class | One or more items in a group of elements is missing a checked-for value. |